class HeaderPortraitModel {
  int code;
  String msg;
  List<PortraitData> data;

  HeaderPortraitModel({this.code, this.msg, this.data});

  HeaderPortraitModel.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    msg = json['msg'];
    if (json['data'] != null) {
      data = new List<PortraitData>();
      json['data'].forEach((v) {
        data.add(new PortraitData.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['msg'] = this.msg;
    if (this.data != null) {
      data['data'] = this.data.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class PortraitData {
  String avatarUrl;
  int uid;

  PortraitData({this.avatarUrl, this.uid});

  PortraitData.fromJson(Map<String, dynamic> json) {
    avatarUrl = json['avatarUrl'];
    uid = json['uid'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['avatarUrl'] = this.avatarUrl;
    data['uid'] = this.uid;
    return data;
  }
}
